package com.apache.flow.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "FLOW_deploy")
public class FlowDeploy implements java.io.Serializable {
	public FlowDeploy() {
	}

	private String dbId; //主键
	private String processName;//流程名称
	private String fileName;//文件名称
	private String pictureName;//图片名称
	private String sysEname;//系统标识
	private String processDefinitionId;//流程定义Id
	private String processDeploymentId;//流程发布Id
	private String processKey;//流程key
	private String processVersion;//流程版本
	private String processSpare;//流程描述
	private String processStatus;//流程状态    1是未发布  2是挂起  3是已发布
	private String createTime;//创建时间
	private String orgId;//机构id
	private String orgCname;//机构中文名称
	private String sysCname;//系统中文名称

	@Id
	@Column(name = "DBID", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	public String getDbId() {
		return dbId;
	}

	public void setDbId(String dbId) {
		this.dbId = dbId;
	}

	@Column(name = "process_name", length = 100)
	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	@Column(name = "file_name", length = 100)
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Column(name = "picture_name", length = 100)
	public String getPictureName() {
		return pictureName;
	}

	public void setPictureName(String pictureName) {
		this.pictureName = pictureName;
	}

	//	@Column(name="sys_id")
	//	public String getSysId() {
	//		return sysId;
	//	}
	//	public void setSysId(String sysId) {
	//		this.sysId = sysId;
	//	}

	@Column(name = "sys_ename")
	public String getSysEname() {
		return sysEname;
	}

	public void setSysEname(String sysEname) {
		this.sysEname = sysEname;
	}

	@Column(name = "process_definition_id", length = 50)
	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	@Column(name = "process_deployment_id", length = 50)
	public String getProcessDeploymentId() {
		return processDeploymentId;
	}

	public void setProcessDeploymentId(String processDeploymentId) {
		this.processDeploymentId = processDeploymentId;
	}

	@Column(name = "process_key", length = 50)
	public String getProcessKey() {
		return processKey;
	}

	public void setProcessKey(String processKey) {
		this.processKey = processKey;
	}

	@Column(name = "process_version", length = 10)
	public String getProcessVersion() {
		return processVersion;
	}

	public void setProcessVersion(String processVersion) {
		this.processVersion = processVersion;
	}

	@Column(name = "process_spare", length = 100)
	public String getProcessSpare() {
		return processSpare;
	}

	public void setProcessSpare(String processSpare) {
		this.processSpare = processSpare;
	}

	@Column(name = "process_status", length = 1)
	public String getProcessStatus() {
		return processStatus;
	}

	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}

	@Column(name = "create_Time", length = 30)
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ORG_ID", length = 100)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "ORG_CNAME", length = 200)
	public String getOrgCname() {
		return orgCname;
	}

	public void setOrgCname(String orgCname) {
		this.orgCname = orgCname;
	}

	@Column(name = "SYS_CNAME", length = 300)
	public String getSysCname() {
		return sysCname;
	}

	public void setSysCname(String sysCname) {
		this.sysCname = sysCname;
	}

}
